<?php
$ret = [ ];
foreach ( $value as $v ) {
	$ret [] = $v ['_ref'];
}
?>

<input type="text" <?php echo $htmlOptions?>
	name="<?php echo $params['name'] ?>"
	<?php if (!empty($params['errors'])) { ?>
	data-content="<?= implode(', ', $params['errors']) ?>"
	data-has-error="1" <?php } ?>
	class="form-control tagsinput-many <?= $elementClass ?>"
	data-value="<?php echo implode(',', $ret) ?>" />

